package com.jie.jie.Fanshe;

import android.content.Context;
import android.widget.Toast;

/**
 * Created by Administrator on 2017/1/19.
 */

public class ReflectionTest {
    private Context context;
    private int int1 = 1;
    public String str1 = "我是公有的";

    protected String str2 = "我是保护的";

    private String str3 = "我是私有的";

    public ReflectionTest() {
    }

    public ReflectionTest(Context context) {
        this.context = context;

    }

    private int show1(int a, String b) {
        System.out.println("私有show1" + a + "   " + b);
        return 0;
    }

    private int show2() {
        System.out.println(str1 + "\n" + str2 + "\n" + str3);
        Toast.makeText(context, "少时诵诗书", Toast.LENGTH_SHORT).show();
        return 0;
    }

    protected int show3() {
        System.out.println(str1 + "\n" + str2 + "\n" + str3);
        return 0;
    }

    public int show4() {
        System.out.println(str1 + "\n" + str2 + "\n" + str3);
        return 0;
    }
}
